/*
class DialogueNode 
Author: Pablo Weremczuk
Handles the dialog tree.
The first level of the tree has the name of the actors.
The subsequent levels has the different dialogues that will be
unlocked by the player.
*/
class DialogueEngine.DialogueNode {
	private var oParentNode:Object;
	private var sText:String;
	private var aChilds:Array;
	//---Constructor
	public function DialogueNode(psText, poParentNode:Object){
		this.setText(psText);
		oParentNode = poParentNode;		
	}
	
	public function PushChild(poNode:DialogueNode){
		aChilds.push(poNode);
	}
	
	public function PopChild():Object{
		return aChilds.pop();
	}
	
	//---Getters and Setters		
	public function getAChilds():Array {
		return aChilds;
	}

	public function setAChilds(aChilds:Array):Void {
		this.aChilds = aChilds;
	}

	public function getText():String {
		return sText;
	}

	public function setText(sText:String):Void {
		this.sText = sText;
	}
	
}